FINANCIAL_REPORT_CONFIG = {
    'dynamic_argument': True,
    'real_time_report': True,
    'group_by': '_chn.keyword',
    'target_event_id': ['recharge'],
    'values': [
        {
            "value_id": "recharge_new_user",
            "target_value": "_user_id",
            "value_name": "游戏新充人数",
            "filter": [
                {'terms': {'_event_id': ['recharge']}},
                {'term': {'_is_new_user': 1}},
            ],
            "operation": "cardinality",
        },
        {
            "value_id": "recharge_new_amount",
            "target_value": "recharge_price",
            "value_name": "游戏新充金额",
            "filter": [
                {'terms': {'_event_id': ['recharge']}},
                {'term': {'_is_new_user': 1}},
            ],
            "operation": "sum",
        },
        {
            "value_id": "recharge_user",
            "target_value": "recharge_price",
            "value_name": "游戏充值金额",
            "filter": [
                {'terms': {'_event_id': ['recharge']}},
            ],
            "operation": "sum",
        },
        {
            "value_id": "first_recharge_user",
            "target_value": "_user_id",
            "value_name": "游戏首充人数",
            "filter": [
                {"terms": {"_user_id": "${first_recharge_user_pool}"}}
            ],
            "operation": "cardinality",
        },
        {
            "value_id": "first_recharge_amount",
            "target_value": "recharge_price",
            "value_name": "游戏首充金额",
            "filter": [
                {"terms": {"_user_id": "${first_recharge_user_pool}"}}
            ],
            "operation": "sum",
        }
    ]
}
